-- GENERATED SPELL FOR [Crimson Bodyguard] --


function spell0_13118(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13118', 5317, 1)
end

function spell1_13118(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13118', 8291, 1)
end

function spell2_13118(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(15749,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13118', 646, 1)
end

function Sorts_13118(pUnit, Event)
local choix_sorts_13118 = math.random(0, 2)
if choix_sorts_13118 == 0 then
pUnit:RegisterEvent('spell0_13118', 1, 1)
end
if choix_sorts_13118 == 1 then
pUnit:RegisterEvent('spell1_13118', 1, 1)
end
if choix_sorts_13118 == 2 then
pUnit:RegisterEvent('spell2_13118', 1, 1)
end
end

function mob13118_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13118', math.random(1500, 3000), 1)
end

function mob13118_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13118_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13118_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13118, 1, 'mob13118_Action')
RegisterUnitEvent(13118, 2, 'mob13118_Leave')
RegisterUnitEvent(13118, 3, 'mob13118_Kill')
RegisterUnitEvent(13118, 4, 'mob13118_Die')
